<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/1/28
  Time: 18:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>表单</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/libs/bootstrap/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/libs/bootstrap/js/bootstrap.js"></script>
</head>
<body>

<div class="container">

    <div class="row">
        <div class="col-sm-4">
            <h4>垂直表单</h4>
            <form role="form">
                <div class="form-group">
                    <label for="firstName">姓</label>
                    <input type="text" class="form-control" id="firstName" placeholder="请输入姓氏">
                </div>
                <div class="form-group">
                    <label for="lastName">名</label>
                    <input type="text" class="form-control" id="lastName" placeholder="请输入名字">
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox"> 记住我
                    </label>
                </div>
                <button type="submit" class="btn btn-default">提交</button>
            </form>
        </div>

        <div class="col-sm-8">
            <h4>内联表单</h4>
            <form role="form" class="form-inline">
                <div class="form-group">
                    <label class="sr-only" for="fname">姓</label>
                    <input type="text" class="form-control" id="fname" placeholder="姓氏">
                </div>
                <div class="form-group">
                    <label class="sr-only" for="lname">名</label>
                    <input type="text" class="form-control" id="lname" placeholder="名字">
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox"> 记住我
                    </label>
                </div>
                <button type="submit" class="btn btn-default">提交</button>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <h4>水平表单</h4>
            <form role="form" class="form-horizontal">
                <div class="form-group">
                    <label for="name" class="col-sm-4">姓</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" id="name">
                    </div>
                </div>
                <div class="form-group">
                    <label for="name1" class="col-sm-4">名</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" id="name1">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-8 col-sm-offset-4">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox"> 记住我
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-8 col-sm-offset-4">
                        <button type="submit" class="btn btn-default">登录</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-4">
            <h4>垂直复选框</h4>
            <div class="checkbox">
                <label>
                    <input type="checkbox"> 复选框1
                </label>
            </div>
            <div class="checkbox">
                <label>
                    <input type="checkbox"> 复选框2
                </label>
            </div>
            <div class="radio">
                <label>
                    <input type="radio"> 单选框1
                </label>
            </div>
            <div class="radio">
                <label>
                    <input type="radio"> 单选框2
                </label>
            </div>
        </div>
        <div class="col-sm-8">
            <div>
                <label class="checkbox-inline">
                    <input type="checkbox"> 复选框1
                </label>
                <label class="checkbox-inline">
                    <input type="checkbox"> 复选框2
                </label>
                <label class="radio-inline">
                    <input type="radio"> 单选框1
                </label>
                <label class="radio-inline">
                    <input type="radio"> 单选框2
                </label>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-6">
            <form role="form">
                <label>单选下拉框</label>
                <select class="form-control">
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                </select>
                <label>多选下拉框</label>
                <select class="form-control" multiple>
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                </select>
            </form>
        </div>
        <div class="col-sm-6">
            <form class="form-horizontal" role="form">
                <div class="form-group">
                    <label for="email" class="col-sm-2 control-label">Email</label>
                    <div class="col-sm-10">
                        <p id="email" class="form-control-static">222@qq.com</p>
                    </div>
                </div>
                <div class="form-group">
                    <label for="password" class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-10">
                        <input type="password" id="password" class="form-control">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <form role="form" class="form-horizontal">
                <div class="form-group">
                    <label class="control-label col-sm-2">禁止输入</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputForDisable" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-2">下来款禁用</label>
                    <div class="col-sm-10">
                        <select class="form-control" disabled>
                            <option>1</option>
                        </select>
                    </div>
                </div>
                <div class="form-group  has-success">
                    <label class="control-label col-sm-2">成功</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group has-error">
                    <div class="control-label col-sm-2">错误</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <h3>输入框大小</h3>
            <form role="form" class="form-horizontal">
                <div class="form-group">
                    <label for="inputLg" class="control-label col-sm-2">大号</label>
                    <div class="col-sm-10">
                        <input type="text" id="inputLg" class="form-control input-lg">
                    </div>
                </div>
                <div class="form-group">
                    <label for="default" class="control-label col-sm-2">默认</label>
                    <div class="col-sm-10">
                        <input type="text" id="default" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputSm" class="control-label col-sm-2">小号</label>
                    <div class="col-sm-10">
                        <input type="text" id="inputSm" class="form-control input-sm">
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>

</body>
</html>

